from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext import db
from google.appengine.ext.webapp import template
from google.appengine.api import mail

class AdvertisementModel(db.model):
	createdBy				= db.UserProperty(required=True)
	shortDescription		= db.StringProperty(required=True)
	longDescription			= db.StringProperty(multiline=True)
	url						= db.StringProperty()
	createdOn				= db.DateTimeProperty(auto_now_add=True)
	updatedOn				= db.DateTimeProperty(auto_now=True)
	onTillDate				= db.DateTimeProperty()
	geoLocation				= db.GeoPtProperty()
	individualDiscount		= db.FloatProperty()
	totalDiscountValue		= db.FloatProperty()
	totalDiscountedUsers	= db.IntegerProperty()
	
	
	